from tkinter import *

root = Tk()
root.title("canvas")
root.geometry("200x200")

canvas = Canvas(root)
canvas.pack()

canvas.create_rectangle(50, 50, 100, 100, fill="blue")

root.mainloop()